{% extends 'base.html' %}

{% block content %}


    <!-- 主体 -->
    <div class=" span8 l_box f_l ">


        <section>
            <div class="page-header">
                {#                    <h3>文章</h3>#}
            </div>
        </section>

        {% if error_msg %}
            <p>{{ error_msg }}</p>
        {% endif %}



        <!--列表开始-->
        <ul>
            {% for article in article_list %}
                <li>


                    <div class="article well clearfix ">
                        {#                        <section class="visible-md visible-lg">#}
                        <section class="new">
                            <div class="title-article">
                                <h4 class="blue-text text-center"><a href="{% url "wiki:detail" pk=article.id %}"
                                                                     title="{{ article.title }}">{{ article.title }}</a>
                                </h4>

                                <div class="content-article text-center">
                                    <div class="alert alert-zan">     {{ article.digest }} ...</div>
                                </div>


                                <ul>


                                    <li class="glyphicon glyphicon-user"><i
                                            class="el-user"></i> {{ article.author.upper }} &nbsp
                                    </li>

                                    <li class="glyphicon glyphicon-time"><a
                                            href="{% url "wiki:index" %}archive/{{ article.publish.year }}/{{ article.publish.month }}"
                                            title="发表于: {{ article.publish }}">
                                        <i class="el-time"></i>{{ article.publish.year }}年{{ article.publish.month }}月&nbsp</a>
                                    </li>


                                    {#                                    <li class="glyphicon glyphicon-pencil"> <a href="#" title="已有 {{ article.comment_set.all }} 条评论">#}
                                    {#                                        <i class="el-comment"> {{ article.comment }}条评论&nbsp</i></a></li>#}

                                    {#                                <li class="glyphicon glyphicon-eye-open"> <a title="已有 {{ article.view }} 次浏览">#}
                                    {#                                    <i class="el-eye-open"></i>{{ article.view }}</a></li>#}


                                    {#                                    {% for category in category_list %}#}
                                    {#                                        {{ category }}#}

                                    <li class="glyphicon glyphicon-th-list"><a
                                            href="{% url "wiki:category" article.category.pk %} " title="分类"><i
                                            class="el-th-list"></i>{{ article.category }}</a></li>

                                    {#                                    {% endfor %}#}

                                </ul>
                            </div>

                        </section>

                    </div>

                </li>
            {% endfor %}
        </ul>
        <!--列表结束-->

    </div>







    <!--=========右侧开始==========-->
    {% include "wiki/right.html" %}
    <!--=========END右侧==========-->

{% endblock %}
